<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	
	<script>
		//	bbb(1,2,3);
		//aaa();//aaa is not a function
	
	
		var aaa = function () {
			console.log("aaa");
		}
		
		function bbb(a,b) {
			console.log("bbb");
		}

		var p = {age:20};

		var Actor = function(name){
			this.name = name;//程序中，this表示自己
			this.show = function () {
				console.log("我是"+this.name);
			}
		}


		var liudeHua = new Actor('刘德华');
		liudeHua.show();

		var liangChaoWei = new Actor("梁朝伟");
		liangChaoWei.show();

		var name = "彭东明";

		var ss = liangChaoWei.show.bind(window);//让this指向参数对象

		// 方法.bind(this指向的对象)  绑定


		function max(a,b) {
			return a>b ? a: b;
		}


		function min() {//
			var arr =Array.prototype.slice.apply(arguments,[0]);
			console.log(arr);
			// console.log(arguments[0],arguments[1]);
		}



	</script>
</body>
</html>